package com.workhours.dto;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * 设置出差开始日期请求DTO
 *
 * @author WorkHours
 * @since 2025-09-19
 */
public class TripStartRequest {
    
    @NotNull(message = "出差开始日期不能为空")
    private LocalDate startDate;
    
    // 构造函数
    public TripStartRequest() {}
    
    public TripStartRequest(LocalDate startDate) {
        this.startDate = startDate;
    }
    
    // Getters and Setters
    public LocalDate getStartDate() {
        return startDate;
    }
    
    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }
    
    @Override
    public String toString() {
        return "TripStartRequest{" +
                "startDate=" + startDate +
                '}';
    }
}
